import request from "@/utils/request";

export function wechatMenuApi(appid) {
    return request({
      url: `/wx/mp/menu/${appid}/get`,
      method: "get",
    });
  }


  export function wechatMenuCreateApi(data, appid) {
    return request({
      url: `/wx/mp/menu/${appid}/create`,
      method: "post",
      data
    });
  }


  export function keywordsInfoApi(params, appid) {
    return request({
      url: `/wx/mp/reply/${appid}/keywords`,
      method: "get",
      params
    });
  }



  /**
 * 关键字回复 新增
 * @param pram
 */
export function replySaveApi(data, appid) {
  return request({
    url: `/wx/mp/reply/${appid}`,
    method: 'post',
    data
  })
}


/**
 * 关键字回复 修改
 * @param pram
 */

export function replyUpdateApi(data, appid) {
  return request({
    url: `/wx/mp/reply/${appid}`,
    method: 'put',
    data
  })
}


/**
 * wechatUploadApi
 * @param pram
 */

/**
 * 微信上传图片
 * @param data
 */
export function wechatUploadApi(data, params) {
  return request({
    url: `/admin/wechat/media/upload`,
    method: 'post',
    data,
    params
  })
}